package com.supplychainapi.utils;

public class Constants {

	// 成功标识
	public static final String SUCCESS_STATUS = "200";

	// 请求成功，请输入支付密码
	public static final int SUCCESS_STATUS_IN_PASSWORD = 200001;

	// 失败标识
	public static final String FAIL_STATUS = "400";

	// 缓存新注册码Key
	public static final String FSSHOPID_NEW_FSREGISTERCODE = "CASHSERVER_NEW_FSREGISTERCODE";
	// Redis_key 过期时间
	public static final long EXPIRE_TIME = 300;

	// 支付系统分配的业务号
	public static final String PAY_SOURCEID = "102";

	// 支付成功标识
	public static final String PAY_SUCCESS_STATUS = "0";
	// 请求输入支付密码标识
	public static final String PAY_QUERY_STATUS = "100";

	// 已支付标识
	public static final String PAY_STATUS = "1";

	// 支付成功回调标识
	public static final int PAY_STATUS_BACK = 7;
	
	// 退款成功回调标识
	public static final int PAYBACK_STATUS_BACK = 15;

	// 支付类型标识:微信
	public static final String PAY_CLASS_1 = "1";
	// 支付类型标识:支付宝
	public static final String PAY_CLASS_2 = "2";
	
	// 大后台支付类型参数设置:微信
	public static final String PAY_PARAM_VALUE_1 = "602";
	// 大后台支付类型参数设置:支付宝
	public static final String PAY_PARAM_VALUE_2 = "601";

	// 支付成功回调--通知标识
	public static final String PAY_SUCCESS_NOTIFY = "4";
	
	// 退款成功回调--通知标识
	public static final String PAYBACK_SUCCESS_NOTIFY = "5";

	// 常量 str 0
	public static final String CONTANTS_STR_0 = "0";

	// 常量 str 1
	public static final String CONTANTS_STR_1 = "1";
	

	/** i18n消息的新地址 */
	public final static String I18N_MESSAGE_ADDR = "msg/message";


	/**
	 * 物料分类
	 */
	public final static String MATERIAL_CLASS="Material";
	
	/**
	 * 物料分类等级
	 */
	public final static Integer MATERIAL_CLASS_LEVEL=3;

	/**
	 * 供应商分类 类型
	 */
	public final static String SUPPLIER_CLASS="Supplier";
	
	/**
	 * 供应商分类等级
	 */
	public final static Integer SUPPLIER_CLASS_LEVEL=2;

	/**
	 * 客户
	 */
	public final static String CUST_CLASS="Cust";
	
	/**
	 * 客户分类等级
	 */
	public final static Integer CUST_CLASS_LEVEL=2;

	/**
	 * 分类
	 */
	public final static String CLASS_CLASS="Class";
	
	/**
	 * 仓库生产序列ID关键字
	 */
	public final static String SCM_TBSTORAGE="scm_tbstorage";
	
	/**
	 * 员工表生成序列ID关键字
	 */
	public final static String TBSTAFF="tbstaff";


//	public static final String JWT_ID = "supplychain";
//	public static final String JWT_SECRET = "nzyGepp@XyEuLuhB8#Y8WX8da*n7afyN";
//	public static final int JWT_TTL = 60*60*1000;  //millisecond
//	public static final int JWT_REFRESH_INTERVAL = 55*60*1000;  //millisecond
//	public static final int JWT_REFRESH_TTL = 12*60*60*1000;  //millisecond

	/* 当前项目redis前缀 */
	public final static String REDIS_PREFIX_KEY = "SUPPLY_CHAIN_API_";
	/* SSO token 缓存前缀 */
	public final static String SSO_CACHE_PREFIX = "SSO_JWT_TOKEN_";

	/* 供应链项目手机缓存前缀 */
	public final static String SCM_PHONE_PREFIX = "SCM_PHONE_PREFIX";
	/* 供应链项目PC缓存前缀 */
	public final static String SCM_PC_PREFIX = "SCM_PC_PREFIX";

	/* 手机端接口不拦截 */
	public final static String[] PHONE_NOT_INTERCEPT = new String[]{"user/login", "user/logout"};

    /* PC端接口不拦截 */
    public final static String[] PC_NOT_INTERCEPT = new String[]{"user/login", "user/logout"};


    public final static String IMAGE_SAVE_PATH="supplychainapi/";

    public final static String increment="increment";

    // 状态 1
    public final static short FISTATUS_1 = 1;
    public final static String FISTATUS_1_VALUE = "正常";
    // 状态 9
    public final static short FISTATUS_9 = 9;
    public final static String FISTATUS_9_VALUE = "禁用";


    public final static Integer CONTANTS_SHORT_0 = 0;
    public final static Integer CONTANTS_SHORT_3 = 3;
}
